package edu.neumont.csc380.esp.entities;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * A key contains a modulus n and an exponent e or d
 * @author jdaniel
 *
 */
@XmlRootElement(name="Key")
public class Key {
	private long modulus;
	private long exponent;
	
	public Key(){
		
	}
	
	public Key(long modulus, long exponent){
		this.setModulus(modulus);
		this.setExponent(exponent);
	}

	@XmlElement(name="Modulus")
	public long getModulus() {
		return modulus;
	}

	public void setModulus(long modulus) {
		this.modulus = modulus;
	}

	@XmlElement(name="Exponent")
	public long getExponent() {
		return exponent;
	}

	public void setExponent(long exponent) {
		this.exponent = exponent;
	}
	
	
}
